package com.atguigu.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author yjj
 * @date 2021年09月02日22:42
 */
@SpringBootApplication
//方法一
@MapperScan("com.atguigu.yygh.hosp.mapper")
//在这个模块要用到一些配置类，因为他们不再同一个模块，所以在pom中引入了一下，但是配置类的包与这个模块的包不一样，所以要指定一下扫描规则
@ComponentScan(basePackages = "com.atguigu")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class,args);
    }
}
